package com.xmwzw.catpu.util;

import com.xmwzw.catpu.bean.SoftBean;
import com.xmwzw.catpu.db.SoftModel;

/**
 * @author : wangzw
 * @date : 20-4-17下午4:50
 * @desc :
 */
public class CommonUtil {

    public static SoftBean getSoftBean(SoftModel softModel,String no) {
        SoftBean softBean = new SoftBean();
        softBean.downloadNo = softModel.downloadNo;
        softBean.id = softModel.id;
        softBean.version = softModel.version;
        softBean.icon_url = softModel.icon_url;
        softBean.name = softModel.name;
        softBean.no = no;
        softBean.type_id = softModel.type_id;
        softBean.down_url = softModel.down_url;
        softBean.type_name = softModel.type_name;

        return softBean;
    }
}
